package decoration;

/**
 * @Author: linKe
 * @Date: 2022/1/15 9:57
 * @FileName: Milk
 * @version: 1.0
 * @Description: 牛奶 调料
 */
public class Milk extends CondimentDecorator{
    public Milk(Beverage beverage){
        super(beverage);
    }

    @Override
    public String getDescription() {
        return getBeverage().getDescription() + ", Milk";
    }

    @Override
    public double cost() {
        return getBeverage().cost() + 2.0;
    }

}
